Question : Type 'void' is not assignable to type '((this: GlobalEventHandlers, ev: MouseEvent) => any) | null'
Answered by : perfect-peccary-7rwc6szo99md
element.onclick=()=>this.yourFunction(parameter);
Source : https://stackoverflow.com/a/51977836/14579011 | Last Update : Tue, 16 Nov 21